# fake program

fr = open("untitled.obj")
v = [] 
vn = []
vt = []
while(True): 
    i = fr.readline()
    if(i == ""):
        break
    a = i.split(' ')
    if(a[0] == "#"): continue
    if(a[0] == "v"): v.append(i)
    if(a[0] == "vn"): vn.append(i)
    if(a[0] == "vt"): vt.append(i)

fr.close()

fw = open("untitled_good.obj", "a+")

print(len(v), len(vn), len(vt))

for i in range(0, len(v) - 1):
    # print(vn[i], vt[i], v[i])
    fw.write(vn[i])
    fw.write(vt[i])
    fw.write(v[i])

fw.close()